package com.woniu.atms.pojo.pre.buyticket;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Objects;

/**
 * 用户模糊查询站点时返回的数据视图
 */
@Getter
@Setter
public class SitePOJO implements Serializable {
    private int id;
    private String name;
    private String address;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SitePOJO pojo = (SitePOJO) o;
        return id == pojo.id && name.equals(pojo.name) && address.equals(pojo.address);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, address);
    }
}
